import request from '@/utils/request'
// 获取品牌数据
export function homeBrand (limit) {
  return request({
    url: '/home/brand',
    params: {
      limit
    }
  })
}
// 轮播图数据
export function homeBanner () {
  return request({
    url: '/home/banner'
  })
}
// 新鲜好物
export function homeNew (limit = 4) {
  return request({
    url: '/home/new',
    params: {
      limit
    }
  })
}
// 人气爆款
export function homeHot () {
  return request({
    url: '/home/hot'
  })
}
export function homeGoods () {
  return request({
    url: '/home/goods'
  })
}
// 专题
export function homeSpecial (limit = 3) {
  return request({
    url: '/home/special',
    params: {
      limit: limit
    }
  })
}
